import { Get, PostJson } from './index';

export const loginApi = (data: any) => PostJson('/api/user/Login', data)

export const getUserListApi = () => Get('/api/user/ListUsers')

export const addUserApi = (data: any) => PostJson('/api/user/CreateUser', data)

export const deleteUserApi = (data: any) => PostJson('/api/user/DeleteUser', data)

export const getReportApi = (data: any) => Get('/api/report/getReport', data)

export const getTaskList = (params: any) => Get('/api/register/listPlans', params)

export const getTaskDetail = (params: any) => Get('/api/register/planDetail', params)

export const updateTaskDetail = (data: any) => PostJson('/api/register/updatePlan', data)